-- GENERATED SPELL FOR [Raene Wolfrunner] --


function spell0_3691(pUnit, Event) --@Explosive Shot,n/a--
pUnit:FullCastSpellOnTarget(15495,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3691', 1000, 1)
end

function spell1_3691(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(21390,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3691', 566, 1)
end

function spell2_3691(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(6533,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3691', 2317, 1)
end

function spell3_3691(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(16100,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3691', 599, 1)
end

function spell4_3691(pUnit, Event) --@Volley,n/a--
pUnit:FullCastSpellOnTarget(22908,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3691', 6000, 1)
end

function Sorts_3691(pUnit, Event)
local choix_sorts_3691 = math.random(0, 4)
if choix_sorts_3691 == 0 then
pUnit:RegisterEvent('spell0_3691', 1, 1)
end
if choix_sorts_3691 == 1 then
pUnit:RegisterEvent('spell1_3691', 1, 1)
end
if choix_sorts_3691 == 2 then
pUnit:RegisterEvent('spell2_3691', 1, 1)
end
if choix_sorts_3691 == 3 then
pUnit:RegisterEvent('spell3_3691', 1, 1)
end
if choix_sorts_3691 == 4 then
pUnit:RegisterEvent('spell4_3691', 1, 1)
end
end

function mob3691_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3691', math.random(1500, 3000), 1)
end

function mob3691_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3691_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3691_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3691, 1, 'mob3691_Action')
RegisterUnitEvent(3691, 2, 'mob3691_Leave')
RegisterUnitEvent(3691, 3, 'mob3691_Kill')
RegisterUnitEvent(3691, 4, 'mob3691_Die')
